\hypertarget{classmob2d__node}{
\section{mob2d\_\-node Class Reference}
\label{classmob2d__node}\index{mob2d\_\-node@{mob2d\_\-node}}
}


{\ttfamily \#include $<$mob2d\_\-node.h$>$}\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structmob2d__node_1_1SprBlend}{SprBlend}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classmob2d__node_a341c633dd16edda8ba9e19a8da2f404f}{
{\bfseries mob2d\_\-node} (pSprite sprite)}
\label{classmob2d__node_a341c633dd16edda8ba9e19a8da2f404f}

\item 
\hypertarget{classmob2d__node_a0fa0710ea2bab2f3c9be613608a2c45c}{
void \hyperlink{classmob2d__node_a0fa0710ea2bab2f3c9be613608a2c45c}{StepFrame} ()}
\label{classmob2d__node_a0fa0710ea2bab2f3c9be613608a2c45c}

\begin{DoxyCompactList}\small\item\em Methods to set data for drawing. \item\end{DoxyCompactList}\item 
\hypertarget{classmob2d__node_a1afeff6bbb1de1e9372e4f88a3f60716}{
void {\bfseries SetFrame} (uint \hyperlink{classmob2d__node_a837169b353e6ccdf3b32ebf07f0ce2cc}{frame})}
\label{classmob2d__node_a1afeff6bbb1de1e9372e4f88a3f60716}

\item 
\hypertarget{classmob2d__node_ab39b1b8cd5d9d2e3ab2f4fc356dfb256}{
void {\bfseries SetAnimation} (string anim)}
\label{classmob2d__node_ab39b1b8cd5d9d2e3ab2f4fc356dfb256}

\item 
\hypertarget{classmob2d__node_a058111245118e520005f74c4b735af05}{
void {\bfseries SetSprite} (string sprite\_\-handle)}
\label{classmob2d__node_a058111245118e520005f74c4b735af05}

\item 
\hypertarget{classmob2d__node_a3579470e83da06a3bedf18087986ab61}{
void {\bfseries SetBlend} (float r, float g, float b)}
\label{classmob2d__node_a3579470e83da06a3bedf18087986ab61}

\item 
\hypertarget{classmob2d__node_aea9b581b2bcb1eb4c749d52401788749}{
void {\bfseries Rotate} (float angle)}
\label{classmob2d__node_aea9b581b2bcb1eb4c749d52401788749}

\item 
\hypertarget{classmob2d__node_a234beeee9f43224978fed8de2d5a902e}{
void {\bfseries Translate} (int \hyperlink{classmob2d__node_a394acbefd5c05e95d7c417ce3d5946a6}{x}, int y)}
\label{classmob2d__node_a234beeee9f43224978fed8de2d5a902e}

\item 
\hypertarget{classmob2d__node_abf3516af9724964802e6fd41f81a46fe}{
void {\bfseries Transform} (int \hyperlink{classmob2d__node_a394acbefd5c05e95d7c417ce3d5946a6}{x}, int y, float angle)}
\label{classmob2d__node_abf3516af9724964802e6fd41f81a46fe}

\item 
\hypertarget{classmob2d__node_a3e1d46c4d90ea1ddf723857267cda87a}{
\hyperlink{structMob2Daabb}{Mob2Daabb} {\bfseries GetAABB} ()}
\label{classmob2d__node_a3e1d46c4d90ea1ddf723857267cda87a}

\item 
\hypertarget{classmob2d__node_a6caba38dd87f69f56eb6ddf7dc5af30f}{
\hyperlink{structMob2DBoundingCircle}{Mob2DBoundingCircle} {\bfseries GetBoundingCircle} ()}
\label{classmob2d__node_a6caba38dd87f69f56eb6ddf7dc5af30f}

\item 
\hypertarget{classmob2d__node_a22babc8357027d7ec48b2ff2db4de851}{
bool {\bfseries isSpriteError} ()}
\label{classmob2d__node_a22babc8357027d7ec48b2ff2db4de851}

\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classmob2d__node_a870ae77e6f8794d0f66b4e8ee41d0161}{
void {\bfseries ReassignToSprite} (pSprite sprite)}
\label{classmob2d__node_a870ae77e6f8794d0f66b4e8ee41d0161}

\item 
\hypertarget{classmob2d__node_aae85dd6f826e5cd2b9868ccbbf4461f7}{
void \hyperlink{classmob2d__node_aae85dd6f826e5cd2b9868ccbbf4461f7}{Draw} ()}
\label{classmob2d__node_aae85dd6f826e5cd2b9868ccbbf4461f7}

\begin{DoxyCompactList}\small\item\em Called by the renderer to draw the sprite. \item\end{DoxyCompactList}\item 
\hypertarget{classmob2d__node_ac9b5215b21ad8e97db68055f49a6e04b}{
void \hyperlink{classmob2d__node_ac9b5215b21ad8e97db68055f49a6e04b}{DrawToScreen} ()}
\label{classmob2d__node_ac9b5215b21ad8e97db68055f49a6e04b}

\begin{DoxyCompactList}\small\item\em Draws the sprite to the screen coordinates. \item\end{DoxyCompactList}\item 
\hypertarget{classmob2d__node_ada92b464b4b0b20fe0dc99eb6fd3b5bd}{
void \hyperlink{classmob2d__node_ada92b464b4b0b20fe0dc99eb6fd3b5bd}{DrawError} ()}
\label{classmob2d__node_ada92b464b4b0b20fe0dc99eb6fd3b5bd}

\begin{DoxyCompactList}\small\item\em Draws an error. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classmob2d__node_a837169b353e6ccdf3b32ebf07f0ce2cc}{
uint \hyperlink{classmob2d__node_a837169b353e6ccdf3b32ebf07f0ce2cc}{frame}}
\label{classmob2d__node_a837169b353e6ccdf3b32ebf07f0ce2cc}

\begin{DoxyCompactList}\small\item\em Int denoting what frame it is on. \item\end{DoxyCompactList}\item 
bool \hyperlink{classmob2d__node_ae43d11a45a33e0d7850b24fc71a9ef86}{draw}
\item 
\hypertarget{classmob2d__node_a1fcf7b35b3172de7c65abc03d6e438c0}{
bool {\bfseries loop}}
\label{classmob2d__node_a1fcf7b35b3172de7c65abc03d6e438c0}

\item 
\hypertarget{classmob2d__node_a7950414d52798272bb172d7bbae88bef}{
bool {\bfseries draw\_\-to\_\-screen}}
\label{classmob2d__node_a7950414d52798272bb172d7bbae88bef}

\item 
\hypertarget{classmob2d__node_a394acbefd5c05e95d7c417ce3d5946a6}{
float \hyperlink{classmob2d__node_a394acbefd5c05e95d7c417ce3d5946a6}{x}}
\label{classmob2d__node_a394acbefd5c05e95d7c417ce3d5946a6}

\begin{DoxyCompactList}\small\item\em Positional data, angular data, and scalar data. \item\end{DoxyCompactList}\item 
\hypertarget{classmob2d__node_a7dc4c708549dea698b1dd11a02ba8636}{
float {\bfseries y}}
\label{classmob2d__node_a7dc4c708549dea698b1dd11a02ba8636}

\item 
\hypertarget{classmob2d__node_a5bca0442fb1981fee972ace4459e430e}{
float {\bfseries angle}}
\label{classmob2d__node_a5bca0442fb1981fee972ace4459e430e}

\item 
\hypertarget{classmob2d__node_ae894dbd1dbe16600f1f65b3cdb1f678b}{
float {\bfseries scale\_\-x}}
\label{classmob2d__node_ae894dbd1dbe16600f1f65b3cdb1f678b}

\item 
\hypertarget{classmob2d__node_a5f268914af99645966641193430ae2fd}{
float {\bfseries scale\_\-y}}
\label{classmob2d__node_a5f268914af99645966641193430ae2fd}

\item 
\hypertarget{classmob2d__node_af304112dcdc7afa39bca7ecd89731f39}{
string \hyperlink{classmob2d__node_af304112dcdc7afa39bca7ecd89731f39}{animation}}
\label{classmob2d__node_af304112dcdc7afa39bca7ecd89731f39}

\begin{DoxyCompactList}\small\item\em Current animation being rendered. \item\end{DoxyCompactList}\item 
\hypertarget{classmob2d__node_a281b40edac302a8542496bcac3d7fcd3}{
\hyperlink{structmob2d__node_1_1SprBlend}{SprBlend} \hyperlink{classmob2d__node_a281b40edac302a8542496bcac3d7fcd3}{blend\_\-color}}
\label{classmob2d__node_a281b40edac302a8542496bcac3d7fcd3}

\begin{DoxyCompactList}\small\item\em Will be used more when shaders are implimented. \item\end{DoxyCompactList}\item 
\hypertarget{classmob2d__node_a833d0db4f67126db65a3fa966d85dd46}{
pSprite \hyperlink{classmob2d__node_a833d0db4f67126db65a3fa966d85dd46}{m\_\-sprite}}
\label{classmob2d__node_a833d0db4f67126db65a3fa966d85dd46}

\begin{DoxyCompactList}\small\item\em This is used to provide direct access to the \hyperlink{classSprite}{Sprite} resource rather than looking it up through the sprite cache. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Friends}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classmob2d__node_ac495e8b586409665102aa3021200d453}{
class \hyperlink{classmob2d__node_ac495e8b586409665102aa3021200d453}{SpriteManager}}
\label{classmob2d__node_ac495e8b586409665102aa3021200d453}

\item 
\hypertarget{classmob2d__node_a0d669340e63fcad02cde401bbd5bcc23}{
class \hyperlink{classmob2d__node_a0d669340e63fcad02cde401bbd5bcc23}{Mob2DRenderer}}
\label{classmob2d__node_a0d669340e63fcad02cde401bbd5bcc23}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Mob2D\_\-node: This is basically a smart pointer to a stored \hyperlink{classSprite}{Sprite} resource with extra methods thrown in. It is used to provide access to the \hyperlink{classSprite}{Sprite} data. A game object holding onto an initialized Mob2DNode is GUARANTEED to point to a valid instance of this until that said game instance is deallocated. 

\subsection{Member Data Documentation}
\hypertarget{classmob2d__node_ae43d11a45a33e0d7850b24fc71a9ef86}{
\index{mob2d\_\-node@{mob2d\_\-node}!draw@{draw}}
\index{draw@{draw}!mob2d_node@{mob2d\_\-node}}
\subsubsection[{draw}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf mob2d\_\-node::draw}\hspace{0.3cm}{\ttfamily  \mbox{[}protected\mbox{]}}}}
\label{classmob2d__node_ae43d11a45a33e0d7850b24fc71a9ef86}
Flag denoting whether or not to animate the node, also whether or not to draw the node. In addition, if the draw\_\-to\_\-screen flag is set, it will use its coordinates as screen coordinates. 

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/orm/Projects/Mob2D/libMob2D/src/mob2d\_\-node.h\item 
/home/orm/Projects/Mob2D/libMob2D/src/mob2d\_\-node.cpp\end{DoxyCompactItemize}
